import request from '@/utils/request'
export default{
    addVideo(eduChapter){
        return request({
            url:`/eduservice/video/addVideo`,
            method:'post',
            data:eduChapter
        })
    },
    removeVideo(id){
        return request({
            url:`/eduservice/video/${id}`,
            method:'delete'
        })
    },
    findVideoInfo(id){
        return request({
            url:`/eduservice/video/${id}`,
            method:'get',
        })
    },
    updateVideoInfo(data){
        return request({
            url:`/eduvod/video/updateVideo`,
            method:'put',
            data:data
        })
    },
    deleteVideoById(id){
        return request({
            url:`/eduvod/video/deleteVideo/${id}`,
            method:'delete',
            data:id
        })
    },
}